@extends('admin.common.web')

@section('title','管理员登录日志列表')

@section('style')
    <style type="text/css">
        .pageList {
            text-align: center;
            margin-top: 2%;
        }
    </style>
@endsection

@section('content')
    <!-- Page Breadcrumb -->
    <div class="page-breadcrumbs">
        <ul class="breadcrumb">
            <li>
                <a href="{{ route('admin.index.index') }}">系统</a>
            </li>
            <li class="active">管理员登录日志</li>
        </ul>
    </div>
    <!-- /Page Breadcrumb -->

    <!-- Page Body -->
    <div class="page-body">
        @include('admin.common.msg')

        <div class="row">
            <div class="col-lg-12 col-sm-12 col-xs-12">
                <div class="widget">
                    <div class="widget-body">
                        <div class="flip-scroll">
                            <table class="table table-bordered table-hover">
                                <thead class="">
                                <tr>
                                    <th class="text-center">ID</th>
                                    <th class="text-center">管理员</th>
                                    <th class="text-center">用户名</th>
                                    <th class="text-center">登录IP</th>
                                    <th class="text-center">登录时间</th>
                                </tr>
                                </thead>
                                <tbody>
                                @foreach($logList as $v)
                                <tr>
                                    <td align="center">{{ $v['id'] }}</td>
                                    <td align="center">{{ $v['nickname'] }}</td>
                                    <td align="center">{{ $v['username'] }}</td>
                                    <td align="center">{{ $v['login_ip'] }}</td>
                                    <td align="center">{{ $v['login_time'] }}</td>
                                </tr>
                                @endforeach
                                </tbody>
                            </table>
                        </div>
                        <div>
                        </div>
                        <div class="pageList">
                            {{ $logList->links() }}
                        </div>
                    </div>
                </div>
            </div>
        </div>

    </div>
@endsection